package BaseClasses;


import java.io.Serializable;
import java.util.List;

public class Question implements Serializable{
	//**Class Variables **//
	private static final long serialVersionUID = -1731835543015656908L;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	private String id;
	private String text;
	private String first_ans;
	private String second_ans;
	private String third_ans;
	private String fourth_ans;
	private String correctAnswer;
	//private String numberOfpts;
	private String subject;
	

	//** Constructors**//
	
	public Question(String ID,String txt , String first_ans , String SecAns , String thirdAns , String fourthAns , String Correct , String sub)
	{
		this.id =ID;
		this.text = txt;
		this.first_ans=first_ans;
		this.second_ans =SecAns;
		this.third_ans=thirdAns;
		this.fourth_ans=fourthAns;
		this.correctAnswer=Correct;
		//this.numberOfpts=numOfPts;
		this.subject=sub;
	}
	
	public Question ()
	{
		
	}
	
	public Question (String QID)
	{
		this.id=QID;
	}
	
	//**Getters & Setters**//
	public String getID()
	{
		return id;
	}

	public String getSubject() 
	{
		return subject;
	}
	
	public void setSubject(String subject) {
		this.subject = subject;
	}
	
	/*public String getNumber() {
		return numberOfpts;
	}
	
	public void setNumber(String number) {
		this.numberOfpts = number;
	}*/
	
	public String getText() {
		return text;
	}
	
	public void setText(String text) {
		this.text = text;
	}
	
	public String getfirst() {
		return first_ans;
	}
	public String getsecond() {
		return second_ans;
	}
	public String getthird() {
		return third_ans;
	}
	public String getfourth() {
		return fourth_ans;
	}
	
	public void setfirst(String first) {
		this.first_ans=first;
	}
	public void setsecond(String sec) {
		this.second_ans=sec;
	}
	public void setthird(String third) {
		this.third_ans=third;
	}
	public void setfourth(String fourth) {
		 this.fourth_ans=fourth;
	}
	
	public String getCorrectAnswer() {
		return correctAnswer;
	}
	
	public void setCorrectAnswer(String correctAnswer) {
		this.correctAnswer = correctAnswer;
	}
	
	public String toString()
	{
		return ("\n\nThe Question is:\n" + "Text: " + text + "\nAns1: " + first_ans + "\nAns2: " + second_ans + 
				"\nAns3: " + third_ans + "\nAns4: " + fourth_ans + "\n" );
				//"The correct answer: " + correctAnswer +  ". " + correctAnswer);
		
	}
	
	
	
}
